package com.ldp.designpatterns.review.structure.decorator.demo1.concreteComponent;

import com.ldp.designpatterns.review.structure.decorator.demo1.component.Component;

/**
 * @ClassName ConcreteComponent
 * @Description TODO 第2步：创建具体构件 ConcreteComponent 实现抽象构建component
 * @Author lindipei
 * @Date 2023/10/20 17:16
 */
public class ConcreteComponent implements Component {

    public ConcreteComponent(){
        System.out.println("创建具体构件角色");
    }

    // 相应的功能处理
    @Override
    public void operation() {
        System.out.println("调用具体构件角色的方法operation()");
    }
}
